package server;

import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
import java.util.List;
import java.util.Vector;
import java.util.concurrent.atomic.AtomicInteger;

import common.Player;
import common.Sendable;

public class Client {

	public Player player;
	
	public final AtomicInteger pendingWrites = new AtomicInteger(0);
	public final List< Sendable > output = new Vector< Sendable >();
	
	public final SocketChannel destination;
	
	public ByteBuffer bufferedObject = ByteBuffer.allocateDirect( 100000 );
	public int objectLength = 0;
	public int offSet = 0;
	
	public Client( SocketChannel destination ) {
		this.destination = destination;
	}
}
